//
// Created by wkm on 2023-12-08.
//

#include "read_vectors.h"
#include "../../ModelingExample/ShiftRegister/usr.h"

void read_vectors::prc_read_vectors() {
    bool t_clr, t_lin, t_rin;
    int t_din, t_dout, t_sel;

    if (infile >> t_sel >> t_clr >> t_lin >> t_rin >> t_din >> t_dout) {
        cout << "Reading line(" << sc_time_stamp() <<
             "):sel= " << t_sel << " clr= " << t_clr << " lin= " <<
             t_lin << " rin= " << t_rin << " din= " << hex <<
             t_din << " t_dout= " << t_dout << endl;
    } else {
        // 当达到文件末端时停止仿真
        sc_stop();
    }
}